<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%--
  Created by IntelliJ IDEA.
  User: Fling
  Date: 2020/3/11
  Time: 21:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <title>Title</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/updatauser.js"></script>
</head>
<body>
修改用户
<input type="hidden" value="${pageContext.request.contextPath}" id="basePath">
<form action="${pageContext.request.contextPath}/updateUser" method="post">
    <input type="hidden" name="id" value="${userById.id}">
    用户编码：<input type="text" name="userCode" value="${userById.userCode}"><br/>
    密码：<input type="text" name="password" value="${userById.password}"><br/>
    联系方式：<input type="text" name="phone" value="${userById.phone}"><br/>
    员工名：<input type="text" name="name" value="${userById.name}"><br/>
    地址：<input type="text" name="address" value="${userById.address}"><br/>
    出生年月：<input type="text" name="birthday" value="<fmt:formatDate value="${userById.birthday}" pattern="yyyy-MM-dd"/>"/><br/>
    性别：<input type="text" name="sex" value="${userById.sex}"><br/>
    入职时间:<input type="text" name="entryTime" value="<fmt:formatDate value="${userById.entryTime}" pattern="yyyy-MM-dd"/>"/><br/>
    用户类型：<select name="roleId"  id="userType"><option value="${userById.roleId}">${userById.role.roleName}</option></select><br/>
    用户状态 0表示在职1表示离职：<input type="text" name="state" value="${userById.state}"/><br/>
    <input type="submit" value="提交">
</form>
</body>
</html>
